<!DOCTYPE html>
<html>
  <head>
    <style>
      body {
        width: 2000px;
        height: 2000px;
      }

      .box {
        position: absolute;
        padding: 20px;
        left: 200px;
        background-color: red;
        width: 200px;
        height: 50px;
      }

      .touch-action-pan {
        touch-action: pan-x;
      }

      .touch-action-manipulation {
        touch-action: manipulation;
      }
    </style>
  </head>

  <body>
    <div>
      <div class="touch-action-pan box" style="top: 200px">
        This box has touch-action: pan-x
        <input type="text">
      </div>

      <div class="touch-action-manipulation box" style="top: 300px">
        This box has touch-action: manipulation
        <input type="text">
      </div>

      <div class="touch-action-pan box" style="top: 400px">
        This box has touch-action: pan-x but is in a scroller
        <div style="width:100px; height:30px; overflow:scroll">
          <input type="text">
        </div>
      </div>
    </div>
  </body>
</html>
